<?
	@session_start();

/*
	$_SESSION[sess_id][$order_counter] = $id;
	$_SESSION[sess_name][$order_counter] = $name;
	$_SESSION[sess_price][$order_counter] = $price;
	$_SESSION[sess_num][$order_counter] = $num;
*/
?>
            		<table width="396">
                    	<tr>
                        	<td colspan="3">
                            	<strong>รายการอาหารที่สั่งซื้อ</strong>
                            </td>
                   	  </tr>
                    	<tr align="center" bgcolor="#FF9900">
                    	  <td width="50"><strong>ลำดับ</strong></td>
                          <td width="206"><strong>รายการอาหาร</strong></td>
                          <td width="124"><strong>ราคา (บาท)</strong></td>
                  	  </tr>
                      <?
						  	$order_counter = count($_SESSION[sess_id]);
							for( $num=0 ; $num < $order_counter ; $num++ )
							{
								$seq = $num+1;
								$name = $_SESSION[sess_name][$num];
								$price = $_SESSION[sess_price][$num];

								$bgcolor = "#FFFFFF";
								if( $seq%2==0 )
									$bgcolor = "#FFCC99";

								echo "
									<tr bgcolor='$bgcolor'>
										<td align='center'>$seq</td>
										<td style='padding-left:5px'>$name</td>
										<td align='center'>$price</td>
									</tr>
									";
							}
					  
					  ?>

                    	<tr>
                    	  <td>&nbsp;</td>
                    	  <td>&nbsp;</td>
                    	  <td>&nbsp;</td>
                  	  </tr>
                    </table>

<?

?>